# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-msal
_pkgname=msal
pkgver=1.33.0
pkgrel=1
pkgdesc='Python library that enables your app to access the Microsoft Cloud.'
arch=('any')
url='https://pypi.org/project/msal/#files'
license=('MIT')
depends=('python' 'python-requests' 'python-cryptography' 'python-mock'
         'python-pyjwt')
makedepends=('python-setuptools' 'cmake')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('4372cbabcd0cf1e67c5f218067fdc9fd0eef36e73e3a5455fa6a84daea4a7d26d50df0b914347796484b92b16b707aede85bf4c99769be9e2c1386cf27b910c8')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

